{% extends "master.html" %}
{% block subtitle %} - 单个商品追踪{% endblock %}


{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpRoot.view')}}">主面板</a></li>
          <li class="active">单个商品追踪</li>
        </ol>
    </div>

    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading"><h4 class="panel-title">输入查询条件</h4></div>
            <div class="panel-body">
                <div class="row">{{mymacros.render_search_form(form,3)}}</div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="btn-toolbar pull-right">
                            <div class="btn-group"><button type="button" class="btn btn-primary" onclick="$('form').submit()">{{BTN_SEARCH}}</button></div>
                        </div>
                    </div>
                </div>
            </div>

            <table class="table table-bordered">
                <thead>
                    <tr>
                        <td class="col-md-2">发生时间</td>
                        <td class="col-md-2">经办人</td>
                        <td class="col-md-2">涉及</td>
                        <td>事件</td>
                    </tr>
                </thead>
                <tbody>
                    {% for hdr,dtl in result %}
                        <tr>
                            <td>{{hdr.appTime|ft}}</td>
                            <td>{{hdr.createBy}}</td>
                            <td>
                                {{ mymacros.render_goto_popup(hdr.refer, loop.first) }}
                            </td>                        
                            <td>从&nbsp;[{{dtl.sIvtLtn.fullPath}}]&nbsp;进入到&nbsp;[{{dtl.dIvtLtn.fullPath}}]&nbsp;。</td>
                        </tr>
                    {% endfor %}
                </tbody>                
            </table>
            <br />
        </div>
    </div>
</div>
{% endblock %}